package cn.mccraft.uide.core;

import java.util.Locale;

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;

import cn.mccraft.uide.api.util.i18n.I18n;
import cn.mccraft.uide.api.util.i18n.SimpleI18n;
import cn.mccraft.uide.core.ui.MainWindow;
import javafx.application.Application;

public final class UIDE {
	
	private static final String NAME = "UIDE";
	private static final String VERSION = "1.0.0";
	
	private static I18n coreI18n;
	
	public static void main(String[] args) {
		coreI18n = new SimpleI18n("uide/lang/", Locale.getDefault());
		Injector injector = Guice.createInjector(new AbstractModule() {
			
			@Override
			protected void configure() {
			}
		});
		Application.launch(MainWindow.class, args);
	}
	
	public static String getName() {
		return NAME;
	}
	
	public static String getVersion() {
		return VERSION;
	}

	public static I18n getCoreI18n() {
		return coreI18n;
	}
}
